﻿namespace ChinaTokenDev.Logger
{
    /// <summary>
    /// 日志接口
    /// </summary>
    public interface ILogAdapter
    {
        /// <summary>
        /// 
        /// </summary>
        string LogRootDir { get; }

        /// <summary>
        /// 输出正常信息
        /// </summary>
        /// <param name="name"></param>
        /// <param name="msg"></param>
        void WriteInfoLog(string name, string msg);

        /// <summary>
        /// 输出错误信息
        /// </summary>
        /// <param name="name"></param>
        /// <param name="msg"></param>
        void WriteErrLog(string name, string msg);
        
        /// <summary>
        /// 输出调试日志
        /// </summary>
        /// <param name="name"></param>
        /// <param name="msg"></param>
        void WriteDebugLog(string name, string msg);

        /// <summary>
        /// 输出告警信息
        /// </summary>
        /// <param name="name"></param>
        /// <param name="msg"></param>
        void WriteWarnLog(string name, string msg);

        /// <summary>
        /// 日志输出
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="msg"></param>
        void WriteLogEx(string fileName, string msg);
    }
}
